package com.woniuxy.dao;


import com.woniuxy.entity.User;
import org.springframework.stereotype.Repository;


@Repository("userDao")
public interface UserDao {

	//根据账号查找用户 
	User findByAccount(String account);


	//注册插入新用户
	public int insertUser(User user);

	//根据邮箱查找
	public User findByEmail(String email);

	//根据id查找用户
	public User findById(int userId);

}
